/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Principal;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Tesla
 */
public class cache_connection {

    static Properties propiedades;
    static jcProperties editarPropiedades;
    static Connection cn;

    public cache_connection() {
        while (cn == null) {
            try {
               Class.forName("org.sqlite.JDBC");
                cn = DriverManager.getConnection("jdbc:sqlite:DataBase/cache.db3");

            } catch (ClassNotFoundException | SQLException ex) {
                Logger.getLogger(cache_connection.class.getName()).log(Level.SEVERE, null, ex);
            } 
        }


    }
    

    public static Connection getconnect() throws SQLException {
        return cn;
    }
}
